package com.hualan.zhsq.entity.car;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hualan.zhsq.entity.information.ResidentInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName MonthluCard
 * @Description 月卡车辆
 * @Author ZheRan
 * @Date 2025年08月07日 下午2:23
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("monthly_card")
public class MonthlyCard {
    @TableId
    private Long id;//主键id
    private String cardNo;//月卡编号
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    private Date createTime;//创建时间
    private String applicantName;//申请人姓名
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    private Date expiryDate;//到期时间
    private String phoneNumber;//手机号
    private String cardStatus;//卡状态
    private Integer cardholderId;//申请人姓名
    private Integer vehicleId;//车辆id

    private Double fee;//费用
    private Integer paymentMethodId;//支付方式id
    private String remark;//备注
    @TableLogic
    private Integer del;//是否删除

    @TableField(exist = false)
    private ResidentInfo residentInfo;//住户信息
    @TableField(exist = false)
    private Vehicle vehicle;//车辆信息
    @TableField(exist = false)
    private PaymentMethod paymentMethod;//支付方式

}
